<?php /* Smarty version Smarty-3.1.12, created on 2012-11-19 13:34:14
         compiled from "templates\edit.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2132650a7b7ba92b806-46580897%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7b9dbaa2b88c97e2d07046d88c486812b7223159' => 
    array (
      0 => 'templates\\edit.tpl',
      1 => 1353331866,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2132650a7b7ba92b806-46580897',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_50a7b7ba92ee08_67455894',
  'variables' => 
  array (
    'edit' => 0,
    'sucesso' => 0,
    'dados' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_50a7b7ba92ee08_67455894')) {function content_50a7b7ba92ee08_67455894($_smarty_tpl) {?><?php if ($_smarty_tpl->tpl_vars['edit']->value==0){?>
<h2>Adicionar Contato</h2>
<?php }else{ ?>
<h2>Editar Contato</h2>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['sucesso']->value!=1){?>
<form action="edit.php" method="post">
	<input type="hidden" name="edit" value="<?php echo $_smarty_tpl->tpl_vars['edit']->value;?>
" />
	<fieldset>
		<label>Nome: <input type="text" name="nome" value="<?php echo $_smarty_tpl->tpl_vars['dados']->value['nome'];?>
" /></label>
		<label>Sobrenome: <input type="text" name="sobrenome" value="<?php echo $_smarty_tpl->tpl_vars['dados']->value['sobrenome'];?>
" /></label>
		<label>Email: <input type="text" name="email" value="<?php echo $_smarty_tpl->tpl_vars['dados']->value['email'];?>
" /></label>
		<label>Telefone: <input type="text" name="telefone" value="<?php echo $_smarty_tpl->tpl_vars['dados']->value['telefone'];?>
" /></label>
		<label>Celular: <input type="text" name="celular" value="<?php echo $_smarty_tpl->tpl_vars['dados']->value['celular'];?>
" /></label>		
	</fieldset>
	<input type="submit" name="submit" value="Salvar" />
</form>
<?php }else{ ?>
	<?php if ($_smarty_tpl->tpl_vars['edit']->value==0){?>
	<p>Dados inseridos com sucesso</p>
	<?php }else{ ?>
	<p>Dados alterados com sucesso</p>
	<?php }?>
<?php }?><?php }} ?>